/**
 * 服务器公共继承的类 所有方法都需要继承
 */

function ServerCommonMessage(){}
ServerCommonMessage.getAction=function (msg){
    message= JSON.parse(msg.data);
    switch (message.head){
        //断线
        case ProtocolApi.Protocol['GAME_RECONNECT']:
            ServerCommonMessage.checkStatus(message.msg);
            break;
    }
};

/**
 * 断线重连
 */
ServerCommonMessage.checkStatus=function (){
    setTimeout(function (){
        window.location.href='RoomDetail.html';
    },1500);

};